package com.ysd.shiro.mapper;

import org.apache.ibatis.annotations.Mapper;

import com.ysd.shiro.entity.Role;

import java.util.List;

@Mapper
public interface RoleMapper {

    int delete(Long roleId);

    int insert(Role role);

    Role findById(Long roleId);

    int updateByParams(Role role);


    List<Role> listRoleByUserId(int id);

}